ip access-list resequence

This command re-sequences rule numbering of a specific Access List.

Syntax

ip access-list resequence <access list id> <starting rule number> <step increment> 

Command

Description

access list id

Defines the Starting Rule Number. The range is 1-2147483647.

Note

This command is applicable only to data-router functionality.

Command Mode

Privileged User

Example

This example shows a configuration of Access List ID 1 with two rules (numbers 10 and 20):

(config-data)# ip access-list standard 1
(config-std-nacl)# 10 permit any
(config-std-nacl)# 20 permit host 3.3.3.3

To change the order of the rules so that the first rule is assigned number 100 and subsequent rules are assigned numbers incremented by 50:

(config-data)# ip access-list resequence 1 100 50

To view the rules and their changed sequence numbers:

# show data access-lists
…
Standard IP access list 1
1 100 permit  any   (0 matches)
1 150 permit  host 3.3.3.3   (0 matches)